package demo5;

public class JavabeanStudentTest {
    public static void main(String[] args) {
        JavaBeanStudent.teacher="姜老师";
        JavaBeanStudent s1=new JavaBeanStudent("小明",15,'男');
        s1.eat();
        s1.show();

        JavaBeanStudent s2=new JavaBeanStudent("花花",17,'女');
        s2.eat();
        s2.show();
    }
}
